import request from '@/utils/request'
// 获取图形验证码
export const getPicCode = () => {
  return request.get('/captcha/image')
}

// 获取短信验证码
export const getMsgCode = (captchaCode, captchaKey, mobile) => {
  return request.post('/captcha/sendSmsCaptcha',
    {
      form: {
        captchaCode,
        captchaKey,
        mobile
      }
    })
}

// 登录接口
export const getLogin = (mobile, smsCode) => {
  return request.post('/passport/login',
    {
      form: {
        isParty: false,
        partyData: {},
        mobile,
        smsCode
      }
    })
}
